package com.zrh.jserver;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@EnableAutoConfiguration//做spring的注容器，创建tomcat，开spring的加载，然后类就都可以使用了

@RestController
public class HelloWorldController {

//    @ResponseBody

    @RequestMapping("/index")

    public String index() {

        return "success";

    }
}